#include <iostream>
#include <string>

using std::cout;
using std::cin;
using std::endl;
using std::string;
using std::getline;

class GradeBook
{
    public:
        void setCourseName ( string name )
        {
            courseName = name;
        }

        string getCourseName()
        {
            return courseName;
        }

        void displayMessage()
        {
            cout << "Welcom to the grade book for\n" << getCourseName() << "!" << endl;
        }

    private:
        string courseName;
}

int main()
{
    string nameOfCourse;
    GradeBook myGradeBook;

    cout << "Initial course name is: " << myGradeBook.getCourseName() << endl;
    cout << "\nPlease enter the course name: " << endl;
    getline( cin, nameOfCourse );
    myGradeBook.setCourseName( nameOfCourse );

    cout << endl;
    myGradeBook.displayMessage();
    return 0;

}
